<?php

// Lấy danh sách liên lạc
include(DIR_SITE . 'page/friend/contact_list.php');

if (isset($_SESSION['send_success'])) {
	if ($_SESSION['send_success']) {
		$success = true;
		$msg = 'Đã gửi thành công!';
	} else {
		$success = false;
		$msg = $_SESSION['msg'];
	}
	
	unset($_SESSION['send_success']);
}

/* Get web mails */
$web_mail_url = URL . 'upload/web_mail/';
$web_mails = get_web_mail(DIR_UPLOAD . 'web_mail/');

/* Load template */
if (file_exists(DIR_TPL . 'mail/compose.tpl.php')) {
	include(DIR_TPL . 'mail/compose.tpl.php');
} else {
	_log('Could not load the template "mail/compose"!', true);
}